package cn.iocoder.yudao.module.promotion.groupon.convert;

import cn.iocoder.yudao.module.promotion.groupon.pojo.po.GrouponProduct;
import cn.iocoder.yudao.module.promotion.groupon.pojo.vo.AdminGrouponProductRespVO;
import cn.iocoder.yudao.module.promotion.groupon.pojo.vo.AppGrouponProductRespVO;
import cn.iocoder.yudao.module.promotion.groupon.pojo.vo.GrouponProductSaveDTO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface GrouponProductConvert {

    GrouponProductConvert INSTANCE = Mappers.getMapper(GrouponProductConvert.class);

    AppGrouponProductRespVO convert(GrouponProduct bean);

    List<AppGrouponProductRespVO> convertList(List<GrouponProduct> list);

    GrouponProduct convert(GrouponProductSaveDTO bean);

    AdminGrouponProductRespVO convert2(AppGrouponProductRespVO bean);

    List<AdminGrouponProductRespVO> convertList2(List<AppGrouponProductRespVO> list);

}
